package com.wl.common.system.support.dto;


import com.wl.common.core.web.dto.AbstractBaseDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 角色表
 *
 * @author wanglin
 * @since 2023-09-18
 */
@Data
@Schema(description = "角色表")
public class SysRoleDTO extends AbstractBaseDTO {
    @Size(min = 2, max = 50, message = "长度为2~50个字符")
    @NotBlank(message = "角色编号不能为空")
    @Schema(description = "角色code")
    private String code;

    @Size(min = 2, max = 50, message = "长度为2~50个字符")
    @NotBlank(message = "角色名称不能为空")
    @Schema(description = "角色名称")
    private String name;

    @NotNull(message = "排序号不能为空")
    @Schema(description = "排序号")
    private Integer orderIndex;

    @Size(max = 200, message = "长度最大为200个字符")
    @Schema(description = "描述")
    private String description;

    /**
     * 菜单组
     */
    @Schema(description = "菜单id")
    private List<String> menuIds;
}